home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-01-01 | 3.7 KB | 173 lines | [TEXT/MPS ] |
-
- /*
- * This file was generated by the SOM Compiler.
- * FileName: Clock.xh.
- * Generated using:
- * SOM Precompiler somipc: 2.18
- * SOM Emitter emitxh.dll: 2.33
- */
-
- #ifndef SOM_Module_AppleTest_defined
- #define SOM_Module_AppleTest_defined 1
- #include <som.xh>
-
- /*
- * Start of user-defined types:
- */
- class SOMClass;
- class SOMObject;
- class ODFrame;
- class ODFacet;
- class ODObject;
- class ODExtension;
- class ODRefCntObject;
- class ODPersistentObject;
- class ODStorageUnit;
- class ODPart;
- class ODCanvas;
- class ODDragItemIterator;
- class ODEmbeddedFramesIterator;
- class ODLink;
- class ODLinkSource;
- class ODObjectSpec;
- class ODShape;
- class ODStorageUnitView;
- class ODTypeList;
- class ODMenuBar;
- class ODFocusSet;
- class ODSession;
- class ODWindow;
- class ODSemanticInterface;
-
- /*
- * End of user-defined types.
- */
- #endif /* SOM_Module_AppleTest_defined */
-
- #ifndef SOM_AppleTest_Clock_xh
- #define SOM_AppleTest_Clock_xh
-
- class AppleTest_Clock;
-
- #define AppleTest_Clock_MajorVersion 1
- #define AppleTest_Clock_MinorVersion 0
-
- /* C++ SOM defs */
- #include <somcls.xh>
- #include <somcm.xh>
-
- /* C++ parent defs */
- #ifndef SOM_ODPart_xh
- #include <Part.xh>
- #endif
-
- #ifndef AppleTest_Clock_API
- #define AppleTest_Clock_API
- /*
- * -- The Class API
- */
-
- /*
- * Start of user-defined types:
- */
-
- /*
- * End of user-defined types.
- */
-
- #ifdef OLDIBMSOMAPISUPPORT
- #define AppleTest_ClockCClassData AppleTest_ClockClassData
- #define AppleTest_ClockNewClass(major,minor) somNewVersionedClassReference(AppleTest_Clock,major,minor)
- #endif
-
- /* define xxxMetaClass macro to facilitate (cls ## MetaClass) */
- #define AppleTest_ClockMetaClass SOMClass
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=power
- #endif
-
- /* The API to the AppleTest_Clock class object, and the methods it introduces. */
- SOMEXTERN struct AppleTest_ClockClassDataStructure {
- #ifdef OLDIBMSOMAPISUPPORT
- SOMClass *classObject; /* always zero, use somNewClassReference instead */
- #else
- long zero;
- #endif
- somStaticClassInfo *sci;
- somDToken instanceDataToken;
- long reserved [3];
- } SOMDLINK AppleTest_ClockClassData;
-
- #if PRAGMA_ALIGN_SUPPORTED
- # pragma options align=reset
- #endif
-
- #if !defined(AppleTest_Clock_Class_Source) && !defined(SOM_Module_clock_Source)
- #if PRAGMA_IMPORT_SUPPORTED
- #pragma import list AppleTest_ClockClassData
- #endif
- #endif
-
-
- /*
- * -- Typedefs and inline method declarations for left path inherited methods
- * -- are omitted because this compilation had -museinheritedmethods in effect
- */
-
-
- /*
- * -- Typedefs for AppleTest_Clock Method Procedures
- */
- SOMEXTERN {
- }
-
- #endif /* AppleTest_Clock_API */
-
-
- /*
- * -- This emitter treats Method Tokens as Thunks by default.
- * -- Use the sc modifier "nothunks" to change this default
- */
- #undef somresolve_
- #define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))
-
- /*
- * -- The C++ Wrapper Class for AppleTest_Clock
- */
- class AppleTest_Clock : public ODPart
- {
- public:
-
- // AppleTest_Clock::new registers use of the class object, and then uses somNew
- // to allocate memory and load the object method table pointer.
- void *operator new(size_t size)
- {
- SOM_IgnoreWarning(size);
- // Allocate memory using the default allocator for AppleTest_Clock, and
- // clear mem & set method table pointer, call basic initialization
- #ifdef SOMCHKNULL
- void * __somResult = (void *)
- somNewObject(AppleTest_Clock);
- SOMCHKNULL(__somResult);
- return __somResult;
- #else
- return (void*) somNewObject(AppleTest_Clock);
- #endif
- }
-
- // AppleTest_Clock::delete uses the default deallocator for the object's class.
- void operator delete(void * obj)
- {
- if (obj) {
- SOM_Resolve(obj,SOMObject,somFree)
- ( (SOMObject*) obj );
- }
- }
-
- }; /* AppleTest_Clock */
-
-
-
- #endif /* SOM_AppleTest_Clock_xh */
-